package com.finesys.backend.common.constant;

/**
 * <p>Title: 缓存key预定义</p>
 * <p>Description: </p>
 * <p>Copyright: CopyRight (c) 2020-2035</p>
 * <p>Company: finesys Co. LTD.</p>
 * <p>Author: lehoon</p>
 * <p>Date: 2020/12/1 9:44</p>
 */
public final class CacheKeyDefine {
    /**用户登陆token前缀*/
    public final static String USER_TOKEN_CACHE_PREFIX                     = "string:user:token:";
    /**用户登陆token前缀(刷新用)*/
    public final static String USER_REFRESHTOKEN_CACHE_PREFIX             = "string:user:refreshtoken:";
    /**用户登陆token前缀*/
    public final static String USER_APP_TOKEN_CACHE_PREFIX                 = "string:user:app:token:";
    /**gateway begin with pattern*/
    public final static String GATEWAY_TOKEN_CACHE_PREFIX                  = "string:gateway:token:";
    /**gateway set key*/
    public final static String GATEWAY_SET_CACHE_PREFIX                    = "set:devops:gateway";
    /**agent begin with pattern*/
    public final static String AGENT_TOKEN_CACHE_PREFIX                    = "string:agent:token:";

    /**guard set key*/
    public final static String GATEWAY_ONLINE_SET_CACHE                    = "set:gateway:online";
    /**agent set key*/
    public final static String AGENT_ONLINE_SET_CACHE                      = "set:gateway:online";

    /**websocket维护的用户列表  server-prefix:ip:port:username*/
    public final static String WEBSOCKET_SERVER_USERNAME_SET_CACHE_PREFIX  = "set:websocket:server:";

    /**websocket address*/
    public final static String WEBSOCKET_ZOOKEEPER_NODE_NAME               = "/finesys-devops/websocket-endpoint";

    /**taskid---->>>>CommandEventModel主要用于推送响应到用户*/
    public final static String COMMAND_EVENT_TASKID_STRING_CACHE           = "string:command:event:";
    /**taskid---->>>>操作记录
     * */
    public final static String OPERATE_RECORD_TASKID_STRING_CACHE           = "string:operate:record:";


    /**首页统计数据缓存key*/
    public final static String DASHBOARD_STATICS_DATA_INDEX_OBJECT_CACHE    = "dashboard:statics:index:object:data";
    /**推送服务器节点缓存数据key*/
    public final static String PUSH_SERVER_NODE_OBJECT_CACHE                = "push:server:node:object:data";


    /**消息幂等redis key*/
    public final static String BUSINESS_MESSAGE_CACHE_KEY_PREFIX           = "string:business:message:prefix:";
}
